package com.googlecode.horncomb.web.spring.mvc;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface ServletResponseStreamDelegate {
	public void createResponse(HttpServletRequest request,
			HttpServletResponse response, ServletResponeInputStreamSource fsr)
			throws Exception;

	/**
	 * @param defaultContentType
	 *            the defaultContentType to set
	 */
	public void setDefaultContentType(String defaultContentType);

	/**
	 * @param readerBufferSiz
	 *            the readerBufferSiz to set
	 */
	public void setReaderBufferSiz(int readerBufferSiz);

	/**
	 * @param defaultFileName
	 *            the defaultFileName to set
	 */
	public void setDefaultFileName(String defaultFileName);

	/**
	 * @param attachment
	 *            the attachment to set
	 */
	public void setAttachment(boolean attachment);

	/**
	 * @param filenameEncoding
	 *            the filenameEncoding to set
	 */
	public void setFilenameEncoding(String filenameEncoding);
}
